/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.app.model.bo;

import org.app.utils.Utils;

/**
 *
 * @author KM
 */
public class LinkType extends NamedEntity implements ILinkType {

    private String sourceLink;
    private String host;
    private Utils.targetType target;

    public LinkType() {
    }

    public LinkType(String name) {
        super(name);
    }

    @Override
    public String getSourceLink() {
        return sourceLink;
    }

    @Override
    public void setSourceLink(String srcLink) {
        this.sourceLink = srcLink;
    }

    @Override
    public String getLinkTarget() {
        return target.name();
    }

    @Override
    public void setLinkTarget(Utils.targetType target) {
        this.target = target;
    }

    @Override
    public void getHost() {
        //TODO Add general pattern to get host from URL
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
